@extends("public.main")
@section("content")
    <div style="margin-left:200px;">
        <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 分类管理 <span
                    class="c-gray en">&gt;</span>添加广告
        </nav>
        <form class="form form-horizontal form-o2o-add" id="form-o2o-add" method="post"
              action="/adv/add"  enctype="multipart/form-data">

            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></label>
                <div class="formControls col-xs-8 col-sm-3">
                    <span  class="c-red">图片建议尺寸使用640*450</span>
                </div>
            </div>
            <div class="row cl">

            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>广告图片：</label>
                <div class="formControls col-xs-8 col-sm-6"> <span class="btn-upload form-group">

				<input class="input-text upload-url" type="text" name="image" id="image" readonly nullmsg="请添加附件！" style="width:200px">
				<a href="javascript:void();" class="btn btn-primary radius upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
				<input type="file" multiple name="image" class="input-file">
				</span>
                </div>
                @if($errors->has('image'))
                    <a style="color:red">{{ $errors->first('image') }}</a>
                @endif
                {!!csrf_field()!!}
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>广告跳转文章：</label>
                <div class="formControls col-xs-8 col-sm-3">
                    <select name="article_id" class="select">
                        @foreach($article as $k => $v)
                            <option value="{{$v['id']}}">---{{$v['title']}}</option>
                        @endforeach
                    </select>
                    {!!csrf_field()!!}
                </div>
            </div>
            <div class="row cl">

            <div class="row cl">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                    <button type="submit" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe632;</i> 保存
                    </button>
                    <button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
                </div>
            </div>
        </form>
    </div>
    <script type="text/javascript">

    </script>
@endsection


